package com.ruoyi.weixin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.weixin.entity.Picture;
import com.ruoyi.weixin.entity.Pictures;
import com.ruoyi.weixin.vo.picOrderTime;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


/**
 * (Picture)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-26 09:52:28
 */
public interface PictureMapper extends BaseMapper<Picture> {

    IPage<String> selectHot(IPage<Picture> page , @Param("picture") Picture picture);

    IPage<Pictures> getPicbyPicIds(Page<Pictures> page, @Param("picturesIds") List<Integer> picturesIds);

    IPage<String> findpicbytab(Page<Picture> page,@Param("collect")  List<Integer> collect,@Param("userId") String userId);

    IPage<String> findGongpicbytab(Page<Picture> page,@Param("collect")  List<Integer> collect);

    IPage<Pictures> findGongPics(Page<Pictures> page);

    IPage<String> findLajiPics(Page<Picture> page,@Param("userId") int userId);

    IPage<picOrderTime> findPicByPicsIdAndtime(Page<Picture> page, @Param("id") int id);

    List<String> getpicBytime( @Param("date") Date date,@Param("psId")Integer psId);

    List<Pictures> getPics(@Param("userId") String userId);

    Integer picCount(@Param("userId")String userId);

    Integer acDayCount(@Param("userId")String userId);
}

